//
//  CSButton.m
//  one_buy_guizhou_ios
//
//  Created by xu yao on 2021/2/2.
//  Copyright © 2021 杨帅. All rights reserved.
//

#import "CSButton.h"

@implementation CSButton


-(void)layoutSubviews {
    [super layoutSubviews];
    CGFloat midX = self.frame.size.width / 2;
    CGFloat midY = self.frame.size.height/ 2 ;
    self.titleLabel.center = CGPointMake(midX, midY + 10);
    self.imageView.center = CGPointMake(midX, midY - 10);
}

@end
